package com.lottery.game.controller.v2.find.request;

import com.lottery.game.common.BaseObject;

import javax.validation.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : yinlin
 * @version : 1.0
 * @date : 2018/11/11 8:27 AM
 * @Description :
 * @Copyright : Copyright (c) 2018
 * @Company : KeRuYun Technology(Beijing) Chengdu Co. Ltd.
 * @link : com.vpay.exchange.core.model.dto.MessageCodeTO
 */
@Data
@ApiModel(description = "短信验证实体")
@AllArgsConstructor
@NoArgsConstructor
public class MessageCodeTO extends BaseObject {

    @NotEmpty(message = "短信验证token不能为空")
    @ApiModelProperty(name = "token", value = "短信验证token，获取短信时返回", required = true)
    private String token;

    @NotEmpty(message = "接受短信验证码手机号不能为空")
    @ApiModelProperty(name = "phone", value = "短信验证手机号，可以从用户ticket中获取，或者用户填入", required = true)
    private String phone;

    @NotEmpty(message = "短信验证码不能为空")
    @ApiModelProperty(name = "code", value = "短信验证码，用户输入", required = true)
    private String code;

}
